<template>
    <div class="progress">
        <el-progress :percentage=timego status="success" @change="start"></el-progress>
    </div>
</template>
<script>
export default {
    data(){
        return{
            // timego: 0,
        }
    },
    props:{
        timego:{
            type: Number
        },
        timeend: {
            type: Number
        }
    },
    mounted(){},
    created(){},
    methods:{
     start(){
        var timer = setInterval(() => {
            this.timego = this.timego+10
            if(this.timego>90){
                clearInterval(timer)
            }
        }, this.timeend);
     }
    }
    
}
</script>
<style>
.progress .el-progress.is-success .el-progress-bar__inner{
    background: #E02525 !important;
}
</style>

<style lang="less" scoped>
</style>


